home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 2 / CU Amiga Magazine's Super CD-ROM 02 (1996)(EMAP Images)(GB)[!][issue 1996-04].iso / magazine / amiga_e / amigae.jan.archive / 000079_crash!iccgcc.c…b.com!THORNTONJ_Fri, 28 Jan 94 01:00:03 PST.msg < prev    next >
Text File  |  1994-02-17  |  2KB  |  71 lines

  1. Received: by bkhouse.cts.com (V1.17-beta/Amiga)
  2.       id <1obk@bkhouse.cts.com>; Fri, 28 Jan 94 01:00:03 PST
  3. Received: from beast.cs.hh.ab.com by crash.cts.com with smtp
  4.     (Smail3.1.28.1 #18) id m0pPX2D-0000xOC; Thu, 27 Jan 94 05:45 PST
  5. Date: Thu, 27 Jan 1994 8:45:21 -0500 (EST)
  6. Message-Id: <940127084521.32cc7b2b@iccgcc.cs.hh.ab.com>
  7. From: THORNTONJ@iccgcc.cs.hh.ab.com
  8. To: amigae@bkhouse.cts.com
  9. Subject: Thanks for the help
  10.  
  11. Hi All,
  12.  
  13.   Thanks for the help in answering my questions. Thanks to Magnus for
  14. his example to my window question.
  15.  
  16.   I had seen a similar program in the E examples, but didn't want to
  17. really mess with it till I had an idea as to what they were doing. 
  18. Thanks again Magnus for explaining this to me.
  19.  
  20.   Here is what I've decided to start with for my program:
  21.  
  22.  
  23. /* My Adventure in E */
  24.  
  25. PROC main()
  26.   DEF command[80]:STRING, con
  27.   IF con:=Open('con:1/1/640/400/Adventure in E',NEWFILE)
  28.     Write(con,'This is my frist program in E!\n',STRLEN)
  29.     WHILE StrCmp(command,'QUIT',ALL)=FALSE
  30.       Write(con,'COMMAND>',STRLEN)
  31.       ReadStr(con,command)
  32.       UpperStr(command)
  33.     ENDWHILE
  34.     Close(con)
  35.    ENDIF
  36.  ENDPROC
  37.  
  38.  
  39. (TAAA DAAA), Well that's it. It's not fancy, but it's a start and it
  40. works. The next thing is to have it check the screen size and open the
  41. window (or I guess I should say console) accordingly.
  42.  
  43. I havn't had time to do more than just type in the above and get it 
  44. working. If I wanted to open more than one console, and draw a map in it,
  45. I could define it as, say, mapcon and then open it with:
  46.  
  47.     IF mapcon:=Open('mapcon:xx/xx/xxx/xxx/XXXXX',NEWFILE)
  48.     ENDIF
  49.  
  50. or something along that line. Then to write to that console with:
  51.  
  52.    Write(mapcon,'Whatever',STRLEN)
  53.  
  54. Am I one the right track with this.
  55.  
  56. I'm sure I'll have lots more questions later as I try to implement this.
  57. As soon as I get enough written so that it resembles a game I'll post it
  58. to the list and maybe y'all can show me some better ways to do some of
  59. the things I've done.
  60.  
  61. I like being on this list. When I tried to learn C I had noone around
  62. to ask questions like this to and after awhile just gave up on it.
  63.  
  64. What little I have done with E I really like, and with the help of everyone
  65. on the list I'm sure I'll go alot farther with it.
  66.  
  67. Thanks for everyone's help so far
  68.  
  69. later
  70. Jessie
  71. thorntonj@beast.cs.hh.ab.com